<%@ page language="java" import="java.util.*,net.skyedu.dao.*,net.skyedu.bean.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath %>">
    <title>&nbsp;</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link href="<%=basePath %>attend/css/base.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
  <br/>
  	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98">
  		<tbody>
  		<tr align="middle">
  			<td height="26" background="<%=basePath %>attend/images/tab_14.gif">打卡时间</td>
  			<td background="<%=basePath %>attend/images/tab_14.gif">打卡校区</td>
  		</tr>
  		<%
  		String date = request.getParameter("date");
  		String userId = request.getParameter("userId");
  		UserInfoDao ud=new UserInfoDao();
		List<Detail> sl=ud.getSchool(Integer.parseInt(userId),date);
		if(sl.size()!=0){
			for(Detail su : sl){
			%>
	  		<tr align="middle" bgColor="#ffffff" onMouseOver="this.bgColor='#cccccc';" onMouseOut="this.bgColor='#ffffff';">
	  			<td height="28"><%=su.getDatetime() %></td>
	  			<td><%=su.getSchName() %></td>
	  		</tr>
	  		<%}}else{%>
			<tr bgColor="#ffffff">
  				<td colspan="2" align="center" height="28"><font color="red">无记录!</font></td>
  			</tr>
			<%} %>
  		</tbody>
  	</table>
  	<TABLE height="24" cellSpacing="1" cellPadding="6" width="90%" align="center" bgColor="#D9EDC0" border="0">
		<TBODY>
		  <TR>
		   	<TD bgColor="#D9EDC0"><font color="red">注：由于指纹机编号有调整，请以10月20号(含当天)以后的记录为准！</font></td>
	  		</tr>
  		</tbody>
  	</table>
  </body>
</html>
